-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(cloudflare): add support for MX records #5283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hi @arthlr. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
14185d5 to
4f51703
Compare
|
/retest |
registry/txt.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the idea to use txt registry for the txt records.
If it's not an integral part of the PR, i would postpone it until we better understand the txt registry roadmap, especially the part of deprecating old records.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove it then 👍
However, we'll need it one day (I would like to use MX and TXT records to automatically deploy sengrid-like DNS records)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using the TXT registry, specifically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I am not using AWS and still don't want a noop registry.
Then, a TXT registry, to store the metadata of TXT records created by external-dns is must-have for my team and I.
|
@mrozentsvayg anything left on your side ? |
|
@mrozentsvayg @AndrewCharlesHay anything left for you ? |
Signed-off-by: Arthur Le Roux <[email protected]>
Signed-off-by: Arthur Le Roux <[email protected]>
Signed-off-by: Arthur Le Roux <[email protected]>
Signed-off-by: Arthur Le Roux <[email protected]>
Signed-off-by: Arthur Le Roux <[email protected]>
Signed-off-by: Arthur Le Roux <[email protected]>
Signed-off-by: Arthur Le Roux <[email protected]>
…ferences Signed-off-by: Arthur Le Roux <[email protected]>
…accordingly Signed-off-by: Arthur Le Roux <[email protected]>
…able declarations Signed-off-by: Arthur Le Roux <[email protected]>
…struct fields and add missing test case for host validation Signed-off-by: Arthur Le Roux <[email protected]>
…ling and ensuring proper priority and host retrieval Signed-off-by: Arthur Le Roux <[email protected]>
…ewMXTarget to use them Signed-off-by: Arthur Le Roux <[email protected]>
… use provider methods and enhance MX record handling in tests Signed-off-by: Arthur Le Roux <[email protected]>
Signed-off-by: Arthur Le Roux <[email protected]>
Signed-off-by: Arthur Le Roux <[email protected]>
… update references Signed-off-by: Arthur Le Roux <[email protected]>
Co-authored-by: Michel Loiseleur <[email protected]>
ivankatliarchuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
cc @mloiseleur
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ivankatliarchuk The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
I forget that if I approve on review, it adds auto-approval. |
* feat(cloudflare): add support for MX records Signed-off-by: Arthur Le Roux <[email protected]> * test(txt): add additional TXT and MX record test cases Signed-off-by: Arthur Le Roux <[email protected]> * feat(endpoint): implement parsing for MX and SRV records with structured targets Signed-off-by: Arthur Le Roux <[email protected]> * fix(txt): remove TXT record type from supported types in NewTXTRegistry Signed-off-by: Arthur Le Roux <[email protected]> * refactor(digitalocean): streamline MX record handling Signed-off-by: Arthur Le Roux <[email protected]> * refactor(cloudflare): improve error handling in change creation Signed-off-by: Arthur Le Roux <[email protected]> * fix(endpoint): return all parsed SRV targets instead of a single target Signed-off-by: Arthur Le Roux <[email protected]> * test(endpoint): add parsing tests for MX and SRV records Signed-off-by: Arthur Le Roux <[email protected]> * fix(endpoint): streamline MX and SRV record validation and parsing Signed-off-by: Arthur Le Roux <[email protected]> * fix(digital_ocean): simplify MX record parsing Signed-off-by: Arthur Le Roux <[email protected]> * fix(docs): update link to CRD source in MX record documentation Signed-off-by: Arthur Le Roux <[email protected]> * fix(cloudflare): improve error handling for MX record parsing Signed-off-by: Arthur Le Roux <[email protected]> * fix(cloudflare): improve error message formatting for MX record parsing Signed-off-by: Arthur Le Roux <[email protected]> * refactor(endpoint): rename ParseMXRecord to NewMXTarget and update references Signed-off-by: Arthur Le Roux <[email protected]> * fix(endpoint): update NewMXTarget to return pointer and adjust tests accordingly Signed-off-by: Arthur Le Roux <[email protected]> * refactor(cloudflare): consolidate proxyEnabled and proxyDisabled variable declarations Signed-off-by: Arthur Le Roux <[email protected]> * fix(endpoint): update TestNewMXTarget to reflect changes in MXTarget struct fields and add missing test case for host validation Signed-off-by: Arthur Le Roux <[email protected]> * fix(digitalocean): improve MX record handling by adjusting error handling and ensuring proper priority and host retrieval Signed-off-by: Arthur Le Roux <[email protected]> * refactor(endpoint): change MXTarget fields to unexported and update NewMXTarget to use them Signed-off-by: Arthur Le Roux <[email protected]> * refactor(cloudflare): update groupByNameAndTypeWithCustomHostnames to use provider methods and enhance MX record handling in tests Signed-off-by: Arthur Le Roux <[email protected]> * test(cloudflare): enhance test cover Signed-off-by: Arthur Le Roux <[email protected]> * refactor(endpoint): remove unused SRVTarget struct from endpoint.go Signed-off-by: Arthur Le Roux <[email protected]> * refactor(endpoint): rename NewMXTarget to NewMXRecord for clarity and update references Signed-off-by: Arthur Le Roux <[email protected]> * Update docs/sources/mx-record.md Co-authored-by: Michel Loiseleur <[email protected]> --------- Signed-off-by: Arthur Le Roux <[email protected]> Co-authored-by: Michel Loiseleur <[email protected]>
Hi there! 👋
Description
This PR introduces support for MX records for the Cloudflare provider.
Fixes #5282
Checklist
Thanks for checking this out! 🙏
Looking forward to your feedback — happy to make any changes if needed.